package com.sigmatrix.h5.service.impl;

import org.springframework.stereotype.Service;

import com.sigmatrix.h5.entity.CodeMapping;
import com.sigmatrix.h5.service.CodeMappingService;
import com.sigmatrix.sc.mongo.common.service.MongoServiceImpl;

/**
 * 
 *@ClassName: CodeMappingServiceImpl
 *@Description:
 *@author MH
 *@date 2018年1月30日 下午8:51:32
 */
@Service
public class CodeMappingServiceImpl extends MongoServiceImpl<CodeMapping> implements CodeMappingService{

	@Override
	public CodeMapping findByQrCode(String qrCode) {
		CodeMapping mapping = new CodeMapping();
		mapping.setPackContent(qrCode);
		return selectOne(mapping);
	}

}
